package com.eastfair.pay.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 实体类
 * 结算单
 * </p>
 *
 * @author clm
 * @since 2022-06-08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "SettlementSaveDTO", description = "结算单")
public class SettlementSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 结算单号
     */
    @ApiModelProperty(value = "结算单号")
    @Size(max = 20, message = "结算单号长度不能超过20")
    private String settleNumber;
    /**
     * 客户id
     */
    @NotNull(message = "客户ID不能为空")
    @ApiModelProperty(value = "客户id")
    private Long cutomerId;
    /**
     * 客户名称
     */
    @NotNull(message = "客户名称不能为空")
    @ApiModelProperty(value = "客户名称")
    @Size(max = 255, message = "客户名称长度不能超过255")
    private String cutomerName;
    /**
     * 展会id
     */
    @NotNull(message = "展会ID不能为空")
    @ApiModelProperty(value = "展会id")
    private Long exhibitionId;
    /**
     * 展会名称
     */
    @NotNull(message = "展会名称不能为空")
    @ApiModelProperty(value = "展会名称")
    @Size(max = 255, message = "展会名称长度不能超过255")
    private String exhibitionName;
    /**
     * 结算日期
     */
    @ApiModelProperty(value = "结算日期")
    private LocalDateTime settleTime;
    /**
     * 应付金额
     */
    @NotNull(message = "应付金额不能为空")
    @ApiModelProperty(value = "应付金额")
    private BigDecimal payableAmount;
    /**
     * 已付金额
     */
    @NotNull(message = "已付金额不能为空")
    @ApiModelProperty(value = "已付金额")
    private BigDecimal payedAmount;
    /**
     * 应退金额
     */
    @NotNull(message = "应退金额不能为空")
    @ApiModelProperty(value = "应退金额")
    private BigDecimal returnAmount;
    /**
     * 已退金额
     */
    @NotNull(message = "已退金额不能为空")
    @ApiModelProperty(value = "已退金额")
    private BigDecimal returnedAmount;
    /**
     * 开票金额
     */
    @ApiModelProperty(value = "开票金额")
    @NotNull(message = "开票金额不能为空")
    private BigDecimal invoiceAmount;

    /**
     * 场地保证金
     */
    @NotNull(message = "场地保证金不能为空")
    private BigDecimal spaceBond;

    /**
     * 服务预存款
     */
    @NotNull(message = "服务预存款不能为空")
    private BigDecimal serviceBond;
    /**
     * 结算详情
     */
    @NotNull(message = "结算详情不能为空")
    private List<SettlementDetailsSaveDTO> detailsSaveDTOList;

    /**
     * 退款申请状态
     */
    @ApiModelProperty(value = "退款申请状态")
    private String refundApplyStatus;

}
